package org.example;


public class Log4jTest {
    public static void main(String[] args) {
//        org.apache.log4j.Logger log4j1 = org.apache.log4j.LogManager.getLogger(Log4jTest.class);
//        log4j1.info("log4j1日志" + log4j1.getClass().getName());

        org.apache.logging.log4j.Logger log4j2 = org.apache.logging.log4j.LogManager.getLogger(Log4jTest.class);
        log4j2.info("log4j2日志" + log4j2.getClass().getName());
    }
}